.class public Lcom/estrongs/android/ui/dialog/h0;
.super Ljava/lang/Object;
.source "NewGestureDialog.java"


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field private c:Lcom/estrongs/android/ui/guesture/ESGesturePanel;

.field private d:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/h0;->b:Landroid/content/Context;

    .line 3
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/h0;->d:Ljava/lang/String;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/h0;->c()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/h0;)Lcom/estrongs/android/ui/guesture/ESGesturePanel;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/h0;->c:Lcom/estrongs/android/ui/guesture/ESGesturePanel;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/dialog/h0;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/h0;->b:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/dialog/h0;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/h0;->d:Ljava/lang/String;

    return-object p0
.end method

.method private c()V
    .locals 8

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/h0;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c00e7

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0906a5

    .line 3
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/h0;->d:Ljava/lang/String;

    const/4 v3, 0x1

    if-nez v2, :cond_0

    const/16 v2, 0x8

    .line 5
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/h0;->b:Landroid/content/Context;

    const v5, 0x7f11048f

    new-array v6, v3, [Ljava/lang/Object;

    const/4 v7, 0x0

    .line 7
    invoke-static {v4, v2}, Lcom/estrongs/android/ui/guesture/c;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v6, v7

    .line 8
    invoke-virtual {v4, v5, v6}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    .line 9
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    const v1, 0x7f09049e

    .line 10
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/guesture/ESGesturePanel;

    iput-object v1, p0, Lcom/estrongs/android/ui/dialog/h0;->c:Lcom/estrongs/android/ui/guesture/ESGesturePanel;

    .line 11
    iput-boolean v3, v1, Lcom/estrongs/android/ui/guesture/ESGesturePanel;->c:Z

    .line 12
    new-instance v2, Lcom/estrongs/android/ui/dialog/h0$a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/dialog/h0$a;-><init>(Lcom/estrongs/android/ui/dialog/h0;)V

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/guesture/ESGesturePanel;->setOnGestureCompleteListener(Lcom/estrongs/android/ui/guesture/ESGesturePanel$a;)V

    .line 13
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/h0;->b:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    const v0, 0x7f110490

    .line 14
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/h0;->a:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/h0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method

.method public a(Landroid/content/DialogInterface$OnDismissListener;)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/h0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0, p1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    return-void
.end method

.method public b()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/h0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
